import Vue from 'vue'
import Router from 'vue-router'


import EmpAdmin from '@/components/admin/EmpAdmin'
import Login from '@/components/admin/Login'
import UserAdmin from '@/components/admin/UserAdmin'
import EmpManager from '@/components/emp/EmpManager'
import empOverdue from '@/components/emp/empOverdue'


import Debit from '@/components/loan/Debit'
import Debits from '@/components/loan/Debits'
import Document from '@/components/loan/Document'
import UserXINXI from '@/components/loan/UserXINXI'
import DebitInfo from '@/components/loan/DebitInfo'

import AdminDebit from '@/components/loan/AdminDebit'
import AdminUseXIN from '@/components/loan/AdminUseXIN'


// import FindUserPwd from '@/components/Person/FindUserPwd'
import Userinfo from '@/components/Person/Userinfo'
import UserInfos from '@/components/Person/UserInfos'
import UserRegister from '@/components/Person/UserRegister'
import UserShow from '@/components/Person/UserShow'
import AdmitDebitShow from '@/components/Person/AdmitDebitShow'
import Contr from '@/components/Person/Contr'

import AddDocumentType from '@/components/Product/AddDocumentType'
import AddLoan from '@/components/Product/AddLoan'
import AddTemplate from '@/components/Product/AddTemplate'
import ProductManage from '@/components/Product/ProductManage'
import ProductShenhe from '@/components/Product/ProductShenhe'
import ShowProduct from '@/components/Product/ShowProduct'
import QuestionShow from '@/components/QuestionAndAnswer/QuestionShow'
import Contract from '@/components/Repay/Contract'
// import Debit from '@/components/Repay/Debit'

import ManageRepay from '@/components/Repay/ManageRepay'
import OverDue from '@/components/Repay/OverDue'
import Repay from '@/components/Repay/Repay'
import RepayInfo from '@/components/Repay/RepayInfo'
import Echart from '@/components/echarts/Echart'






Vue.use(Router)

export default new Router({
  routes: [

    {
      path: '/',
      name: 'Login',
      component: Login
    },



    {
      path: '/UserAdmin',
      name: 'UserAdmin',
      component: UserAdmin,
      children: [

        {
          path: '/QuestionShow',
          name: 'QuestionShow',
          component: QuestionShow
        },
        {
          path: '/ShowProduct',
          name: 'ShowProduct',
          component: ShowProduct
        },
        {
          path: '/UserShow',
          name: 'UserShow',
          component: UserShow
        }, {
          path: '/Userinfo',
          name: 'Userinfo',
          component: Userinfo
        }, {
          path: '/Repay/:uid',
          name: 'Repay',
          component: Repay
        }, {
          path: '/RepayInfo:id',
          name: 'RepayInfo',
          component: RepayInfo
        },
        {
          path: '/Debit',
          name: 'Debit',
          component: Debit
        },
        {
          path: '/Debits',
          name: 'Debits',
          component: Debits
        },
        {
          path: '/UserInfos',
          name: 'UserInfos',
          component: UserInfos
        },
        {
          path: '/Document',
          name: 'Document',
          component: Document
        },
        {
          path: '/DebitInfo',
          name: 'DebitInfo',
          component: DebitInfo
        }, {
          path: '/OverDue:uid',
          name: 'OverDue',
          component: OverDue
        },
    
        {
          path: '/UserXINXI',
          name: 'UserXINXI',
          component: UserXINXI
        },
        {
          path: '/Contr',
          name: 'Contr',
          component: Contr
        },

        

      ]

    },
    {
      path: '/EmpAdmin',
      name: 'EmpAdmin',
      component: EmpAdmin,
      children: [
       
        {
          path: '/Echart',
          name: 'Echart',
          component: Echart
        },
        {
          path: '/ProductManage',
          name: 'ProductManage',
          component: ProductManage
        },
        {
          path: '/EmpManager',
          name: 'EmpManager',
          component: EmpManager
        },
        {
          path: '/ManageRepay',
          name: 'ManageRepay',
          component: ManageRepay
        }, {
          path: '/ProductShenhe',
          name: 'ProductShenhe',
          component: ProductShenhe
        },
        {
          path: '/AddLoan',
          name: 'AddLoan',
          component: AddLoan
        },
        {
          path: '/AdminDebit',
          name: 'AdminDebit',
          component: AdminDebit
        },
        {
          path: '/AdminUseXIN',
          name: 'AdminUseXIN',
          component: AdminUseXIN
        },
        {
          path: '/AddTemplate',
          name: 'AddTemplate',
          component: AddTemplate
        }, {
          path: '/AddDocumentType',
          name: 'AddDocumentType',
          component: AddDocumentType
        },
        {
          path: '/empOverdue',
          name: 'empOverdue',
          component: empOverdue
        },
        {
          path: '/AdmitDebitShow',
          name: 'AdmitDebitShow',
          component: AdmitDebitShow
        },
        

        

      ]
    },
    {
      path: '/UserRegister',
      name: 'UserRegister',
      component: UserRegister,

    },

    
  ]
})
